<template>
	<view>
		<video :src="url" :autoplay="true" :style="'height:'+windowHeight+'rpx;'"></video>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				url: '',
				windowHeight: '',
			}
		},
		
		onLoad(options) {
			uni.getSystemInfo({
				success: res => {
					this.windowHeight = res.windowHeight * 2;
				}
			})
			if (options.url) {
				this.url = options.url;
				console.log(this.url)
			}
		},
		
		onShow() {
			
		},
		
		methods: {
			
		}
	}
</script>

<style>
	
	
	
</style>
